public class Test3 {

    public static void main(String[] args) {

        ClassLoader classLoader = Test3.class.getClassLoader();

        /*System.out.println("系统类加载器 : " + classLoader);

        System.out.println("扩展类加载器 : " + classLoader.getParent());

        System.out.println("启动类加载器 : " + classLoader.getParent().getParent());*/

        System.out.println("启动类加载器加载类路径 : " + System.getProperty("sun.boot.class.path"));

        System.out.println("扩展类加载器加载类路径 : " + System.getProperty("java.ext.dirs"));

        System.out.println("应用类加载器加载类路径 : " + System.getProperty("java.class.path"));

        System.out.println(Test3.class.getName() + "的类加载器是 : " + Test3.class.getClassLoader());

        System.out.println(String.class.getName() + "的类加载器是 : " + String.class.getClassLoader());

        // ClassLoader.getSystemClassLoader().getParent();

    }
}
